home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
HPAVC
/
HPAVC CD-ROM.iso
/
PPC1B3AA.ZIP
/
BRACKETS.PPS
< prev
next >
Wrap
Text File
|
1996-08-09
|
708b
|
25 lines
;----------------------------------------------------------------------------
;
; This example demonstrate the use of brackets []
;
;----------------------------------------------------------------------------
#ppe
Integer IntVar
String StrVar
IntVar = 86123
StrVar = "86123"
PrintLn StrVar[3] ; Prints the 3rd char of var strvar
PrintLn StrVar[StrVar[3]] ; Print the nth char of strvar depending
; on 3rd char
; The same thing may be achieved on Integers, or any other datatype.
; Just consider their value is first converted to String
PrintLn IntVar[3]
PrintLn IntVar[IntVar[3]]